package com.jvtd.nettyim.im.client.handler;

import com.jvtd.nettyim.im.protocol.response.CreateGroupResponsePacket;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author Created by neal.zhang
 * @date 2020/6/1 - 12:47
 */
public class CreateGroupResponseHandler extends SimpleChannelInboundHandler<CreateGroupResponsePacket> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, CreateGroupResponsePacket msg) throws Exception {
        System.err.println("群创建成功，id为："+msg.getGroupId());
        System.err.println("群成员："+msg.getUserNameList());
    }
}
